package com.qymerge.manage.core.exception;

import lombok.Data;

import java.io.Serializable;

/**
 * Desc
 * User cong.li
 * Date 2017/4/4
 * Time 22:34
 */
@Data
public class ApiException extends Exception implements Serializable {

    private int code;
    private String msg;

    public ApiException() {
    }

    public ApiException(String message, Throwable cause) {
        super(message, cause);
    }

    public ApiException(String message) {
        super(message);
    }

    public ApiException(Throwable cause) {
        super(cause);
    }

    public ApiException(int code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

}
